package com.eastshop.seller.vo;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import org.apache.commons.lang3.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class Seller implements Serializable {

    /** identifier field */
    private Integer sid;

    /** nullable persistent field */
    private String sname;

    /** nullable persistent field */
    private String star;

    /** nullable persistent field */
    private String address;

    /** nullable persistent field */
    private String phone;

    /** nullable persistent field */
    private Date sdate;

    /** persistent field */
    private Set regions;

    /** full constructor */
    public Seller(String sname, String star, String address, String phone, Date sdate, Set regions) {
        this.sname = sname;
        this.star = star;
        this.address = address;
        this.phone = phone;
        this.sdate = sdate;
        this.regions = regions;
    }

    /** default constructor */
    public Seller() {
    }

    /** minimal constructor */
    public Seller(Set regions) {
        this.regions = regions;
    }

    public Integer getSid() {
        return this.sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSname() {
        return this.sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getStar() {
        return this.star;
    }

    public void setStar(String star) {
        this.star = star;
    }

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getSdate() {
        return this.sdate;
    }

    public void setSdate(Date sdate) {
        this.sdate = sdate;
    }

    public Set getRegions() {
        return this.regions;
    }

    public void setRegions(Set regions) {
        this.regions = regions;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("sid", getSid())
            .toString();
    }

}
